import defaultSettings from '@/settings'

const title = defaultSettings.title || 'Vue Element Admin'

export default function getPageTitle(pageTitle,headerName) {
  if (pageTitle) {
    return `${headerName||title}-${pageTitle}`
  }
  return `${headerName||title}`
}
